home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.1 (Developer) [x86] / NeXT Step 3.1 Intel dev.cdr.dmg / NextDeveloper / Examples / IndexingKit / ToDoList / CalendarView.h next >
Encoding:
C/C++ Source or Header  |  1993-02-16  |  961 b   |  49 lines

  1. /*
  2. CalendarView.h - Copyright (c) 1992 NeXT Computer, Inc.
  3.  
  4. You may freely copy, distribute and reuse the code in this example.
  5. NeXT Computer, Inc. disclaims any warranty of any kind, expressed or implied, 
  6. as to its fitness for any particular use.
  7. */
  8.  
  9. #import <appkit/View.h>
  10. #include "time.h"
  11.  
  12. @interface CalendarView:View
  13. {
  14.     /* Archived Instance Variables */
  15.     id        delegate;
  16.     id        monthButton;
  17.     id        monthPl;
  18.     id        yearButton;
  19.     id        yearPl;
  20.     id        monthMatrix;
  21.     id        dayLabelMatrix;
  22.     id        buttonFont;
  23.     id        cellFont;
  24.     BOOL        useDelegate;
  25.     
  26.     /* scratch Instance Variables */
  27.     struct    tm    theTime;
  28.     struct    tm    *theTimePtr;        
  29.     time_t        t;    
  30.     NXRect        viewRect;
  31.         NXSize        cellSize;
  32.     int        yearBase;
  33.     char        timeZone[10];
  34.     char        tbuf[40];
  35. }
  36.  
  37. - setupButtons;
  38. - setFonts;
  39. - loadMatrix;
  40. - (struct tm *)currentDate;
  41. - setCurrentDate:(struct tm *)theDate;
  42. - dateChanged:sender;
  43. - dayChanged:sender;
  44. - (BOOL)useDelegate;
  45. - setDoDelegate:anObject;
  46. - (const char *)stringValue;
  47.  
  48. @end
  49.